package com.example.park_management.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.park_management.entity.Campaignparticipants_wjs;
import com.example.park_management.entity.MarketingCampaigns_wjs;
import com.example.park_management.mapper.CampaignparticipantsMapper_wjs;
import org.apache.ibatis.annotations.Select;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CampaignparticipantsService_wjs extends ServiceImpl<CampaignparticipantsMapper_wjs, Campaignparticipants_wjs> {

    @Autowired
    private CampaignparticipantsMapper_wjs cpm_wjs;

    public boolean savacpwjs(Campaignparticipants_wjs cp) {
        return saveOrUpdate(cp);
    }


    public List<Integer> seletebyTenantID(Integer tenantID) {
        return cpm_wjs.seletebyTenantID(tenantID);
    }

    public boolean removeByCID_TID(Integer cid, Integer tid) {
        return cpm_wjs.removeByCID_TID(cid,tid);
    }
}
